<template>
		<div class="search" :class="{hasrow:row>1,off:!isOpen}">
			<slot>
				
			</slot>
			<Button type="text" class="tigger" @click="tigger">
				更多条件
				<Icon v-if="!isOpen" type="arrow-down-b"></Icon>
				<Icon v-else type="arrow-up-b"></Icon>
			</Button>
		</div>
</template>
<script>
	import {post}  from '@/util/request'

	export default {
			props:['row','open'],
			data(){
				return {
					isOpen:!!this.open
				}
			},
			watch:{
				open(v){
					this.isOpen = v;
				}
			},
			methods:{
				tigger(){
					this.isOpen = !this.isOpen;
				}
			}
	}
</script>